package bsh.meta;

import bsh.BytecodeGenerator;
import bsh.Parameter;

/**
 * A declared constructor
 * 
 * @author takeshi
 */
public class DeclaredConstructor {

    private final Parameter[] parameters;

    private final BytecodeGenerator constructorBody;

    /**
     * Constructor
     * 
     * @param parameters the parameter types
     * @param constructorBody {@link BytecodeGenerator}
     */
    public DeclaredConstructor(Parameter[] parameters, BytecodeGenerator constructorBody) {
        super();
        this.parameters = parameters;
        this.constructorBody = constructorBody;
    }

    /**
     * @return the parameters
     */
    public Parameter[] getParameters() {
        return parameters;
    }

    /**
     * @return the constructorBody
     */
    public BytecodeGenerator getConstructorBody() {
        return constructorBody;
    }

}